package com.soup.lab.basic.other;

import com.carrotsearch.sizeof.RamUsageEstimator;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class ObjectSizeTestCase {

    @Test
    public void testObjectSize() {
        Assertions.assertEquals(RamUsageEstimator.sizeOf("w"), 48);
        Assertions.assertEquals(RamUsageEstimator.sizeOf(1L), 24);
    }

    @Test
    public void test() {
        System.out.println(Object.class.isAssignableFrom(String.class));
    }

}
